package com.middlegroup.payadmin.mapper;

import com.middlegroup.payadmin.pojo.po.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author pc
 */
//@Mapper
public interface MenuMapper extends com.baomidou.mybatisplus.mapper.BaseMapper<Menu> {

    /**
     * 查询所有菜单,根据 scort 升序排序
     *
     * @return 查询结果
     */
    List<Menu> listMenu();

    /**
     * 调用 refreshTreeNodes 存储过程
     */
    @Select("CALL refreshTreeNodes();")
    void refreshTreeNodes();


}